package com.xl.utils.proxystudy.dynamic;

/**
 * @Author xionglin
 * @Classname test
 * @Description TODO
 * @Date 2019/7/1 14:19
 */
public class test {
    public static void main(String[] args) {
        //创建目标对象
        UserDao userDao = new UserDaoImpl();
        //创建代理对象
        ProxyBean proxyBean = new ProxyBean();
        //创建目标对象的代理对象的方法
        UserDao proxy = (UserDao)proxyBean.createProxy(userDao);

        proxy.addUser();

        proxy.queryUser();
    }
}
